package com.audaque.springboot.foshanupload.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zgb
 * @desc ...
 * @date 2023-04-03 21:02:53
 */
public interface DiyBaseMapper<T> extends BaseMapper<T> {

    /**
     * 真正的批量插入:mybatisPlus已经提供好了InsertBatchSomeColumn的方法
     *
     * @param entityList
     * @return
     */
    int insertBatchSomeColumn(List<T> entityList);


    int alwaysUpdateSomeColumnById(@Param(Constants.ENTITY) T entity);
    //逻辑删除自动填充
    int deleteByIdWithFill(T entity);



}
